//
//  B_ReleaseActivityHeaderView.m
//  DreamOf
//
//  Created by 薛小刚 on 2018/9/9.
//  Copyright © 2018年 薛小刚. All rights reserved.
//

#import "B_ReleaseActivityHeaderView.h"

@implementation B_ReleaseActivityHeaderView

+ (instancetype) initB_ReleaseActivityHeaderView {
    B_ReleaseActivityHeaderView * view = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil].lastObject;
    [view setButton];
    return view;
}

- (void)setButton {
    [self.B_addButton layoutButtonWithEdgeInsetsStyle:MKButtonEdgeInsetsStyleTop imageTitleSpace:10];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (IBAction)B_addButtonAction:(id)sender {
    if (self.B_addAction) {
        self.B_addAction();
    }
}
@end
